﻿using NHibernate.Collection.Generic;

namespace monitor_2_DBwork
{

    class Oblast : IRepositoryName
    {
        public Oblast() { }

        public Oblast(string name, int idMainRTPS) 
        { 
            Name = name;
            IdMainRTPS = idMainRTPS;
        }

        public virtual int Id { get; protected set; }

        public virtual string Name { get; set; }

        public virtual int? IdMainRTPS { get; set; }

        public virtual RTPS MainRTPS { get; set; }

        public virtual PersistentGenericSet<RTPS> RTPSList { get; set; }

        public virtual PersistentGenericSet<TrustedAddress> TrustedAddressList { get; set; }

        public virtual PersistentGenericSet<ServerLog> ServerLogList { get; set; }
    }
}
